package javase2.day08;

import java.io.IOException;
import java.io.InputStream;
import java.net.Socket;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Set;

public class Demo1 {
	public static void main(String[] args) throws IOException{
		List<String> list1 = new ArrayList<String>();
		List<String> list2 = new LinkedList<String>();
		Set<String> set = new HashSet<String>();
		
		Iterator<String> i = list1.iterator();
		System.out.println(i.getClass().getName());
		i=list2.iterator();
		System.out.println(i.getClass().getName());
		i=set.iterator();
		System.out.println(i.getClass().getName());
		
		Socket s = new Socket("127.0.0.1",8000);
		InputStream in = s.getInputStream();
		System.out.println(in.getClass().getName());  //SocketInputStream
		System.out.println(in.getClass().getDeclaredMethods());
	}
}
